<%-- 
    Document   : Menu
    Created on : May 20, 2010, 9:49:24 PM
    Author     : vasi
--%>

<%@page import="utils.*" %>
<%@page import="java.util.*" %>

<%
Menu menu = (Menu)request.getAttribute("menu");
if (menu.items.size() > 0){
    out.print("<div class=\"menu\"><ul>");
    Iterator<MenuItem> it = menu.items.iterator();
    while (it.hasNext()){
        MenuItem item = it.next();
        out.print("<li class=\"menu-item\"><a href=\""+request.getContextPath()+item.href+"\">"+item.title+"</a></li>");
    }
    out.print("</ul></div>");
}
%>